#include <iostream.h>

int main(void)
{
    char c[1];
    int i = 0, numbers[100];
    bool loop = true;

    cout  << "Enter numbers to array (hit q to quit)";
    while(1) {
        cin >> c;
        if (c[0] == 'q') {
            break;
        }
        numbers[i++] = atoi(c);
    }
    // ... actually do something with the array here
    return 0;
}
